<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div class="pageContent">
	<form method="post" action="useradd.do?flag=${flag}" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>ID：</label>
				<input name="id" type="text" size="30" class="required number" value="${user.id}"/>
			</p>
			<p>
				<label>姓名：</label>
				<input name="aname" type="text" size="30" class="required" value="${user.aname}"/>
			</p>
			<p>
				<label>年龄：</label>
				<input name="aage" type="text" size="30" class="required number" value="${user.aage}"/>
			</p>
			<div class="divider"></div>
	            <input id="FileInput" type="file" name="FileInput" 
			       uploaderOption="{
			                           swf:'DWZ/uploadify/scripts/uploadify.swf',
			                           uploader:'uploadify.do',
			                           formData:{PHPSESSID:'xxx', ajax:1},
			                           queueID:'fileQueue',
			                           buttonImage:'DWZ/uploadify/img/add.jpg',
			                           buttonClass:'my-uploadify-button',
			                           width:102,
			                           auto:false
			                         }"/>
	            <div id="fileQueue" class="fileQueue"></div>
	            <input type="image" src="DWZ/uploadify/img/upload.jpg" onclick="$('#FileInput').uploadify('upload', '*');return false;"/>
	            <input type="image" src="DWZ/uploadify/img/cancel.jpg" onclick="$('#FileInput').uploadify('cancel', '*');return false;"/>
			<div class="divider"></div>
				<label>注释：</label>
				<textarea name="comment" class="editor {width:'950',height:'250',upLinkUrl:'editor.do?flag=link',upLinkExt:'zip,rar,txt',upImgUrl:'editor.do?flag=img',upImgExt:'jpg,jpeg,gif,png',upFlashUrl:'editor.do?flag=flash',upFlashExt:'swf',upMediaUrl:'editor.do?flag=media',upMediaExt:'wmv,avi,wma,mp3,mid'}">${comment}</textarea>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>

<style type="text/css" media="screen">
.my-uploadify-button {
	background:none;
	border: none;
	text-shadow: none;
	border-radius:0;
}

.uploadify:hover .my-uploadify-button {
	background:none;
	border: none;
}

.fileQueue {
	width: 400px;
	height: 150px;
	overflow: auto;
	border: 1px solid #E5E5E5;
	margin-bottom: 10px;
}
</style>
